package com.vhly.apb;

import android.os.AsyncTask;

/**
 * Created by IntelliJ IDEA.
 * User: vhly[FR]
 * Date: 2010-12-14
 * Time: 23:26:48
 * Email: vhly@163.com
 */
public class ClientAsyncTask extends AsyncTask <Object, Long, Object> {

    ClientHandler handler;

    @Override
    public Object doInBackground(Object... objects) {
        Object ret = null;
        if(handler != null){
             ret = handler.execTask(objects);
        }
        return ret;
    }

    @Override
    public void onPostExecute(Object o) {
        if(handler != null){
            handler.taskFinished(o);
        }
    }
}
